package com.mas.admin.biz.dal.mysql.permission;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mas.admin.biz.dal.dataobject.permission.MenuDO;
import com.mas.framework.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;

/**
 * @author godyao
 * @description MenuMapper
 * @date 2023年02月03日00:20
 */
@Mapper
public interface MenuMapper extends BaseMapperX<MenuDO> {
    default Long selectCountByUpdateTimeGt(LocalDateTime maxUpdateTime) {
        return selectCount(new LambdaQueryWrapper<MenuDO>().gt(MenuDO::getUpdateTime, maxUpdateTime));
    }
}
